Repository navigation
fix(cluster): DevNet round 3: status says a Local Network refusal, a stopped pair reads stopped, wording, the uninstall's own incidents, the guide - #1784
Conversation
…cident log Pair-2 re-test (R-6): `darkbloom-dev uninstall --keep-models` keeps the shared ~/.darkbloom/cluster* for the production app, and so left the DevNet-only incident log (its log and lock, and a corrupt copy if any) behind. As a test, both directions, with the files named by the log's own `ClusterIncidentLog.defaultFile(homeDirectory:install:)`: - uninstalling the non-production install removes its own incident files and names them in the summary; the other install's files and every shared cluster file stay; - uninstalling production beside it keeps production's log: it is the shared folder's `incidents.json`, which an older build of the other install still writes. Red at 6940be3: the non-production install's three incident files stay and no summary line names them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ir reads stopped (red) From the pair-2 re-test of dev @ 6940be3: - R-1: with the member's link follower refused by macOS, both Macs' `status` and `cluster status` read `loading` with no reason. They must read not_serving with the setup screens' words: on the refused Mac its own service's state, on the leading Mac the other Mac's refusal under the ✗'s 20 s rule. - R-5: a stopped pair whose other Mac is gone read other_mac_away; it must read stopped, with a line that the other Mac isn't answering. Adds, at today's behavior, ClusterLocalNetworkAccess.Refused, otherMacRefused, refusalCanBeCurrent, otherMacStatus and statusWords, and ClusterPairSummary.read(localNetworkRefused:). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…says its refusal once (red) The pair-2 re-test of DevNet 6940be3, R-3 and R-4: - R-3: the 2/4 Pair hint's firewall bullet said "Darkbloom" in the DevNet app, whose firewall entry is its own name. pairingLinesNameTheApp (the onboarding checks) runs the pairing with the DevNet app's name; thePairingLinesNameThisBuildsApp checks this build's name (DevNet in a dev-identity build). - R-4: the leader's Local Network ✗ added the follower's own instruction as a fourth line, cut at 300 characters inside a parenthesis. theLocalNetworkCrossSaysTheRefusalOnce and aLongLineIsCutAtAWordOutsideAnyParenthesis. The seams the tests call are added with today's behaviour, so they fail on what they check: ClusterConsoleText.boundedAtWord cuts as bounded does, and errorLines' refusalSaid is ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r reads stopped From the pair-2 re-test of dev @ 6940be3: - R-1: `status` and `cluster status` read not_serving (exit 3) while macOS keeps a Mac's link follower off the local network, by the setup screens' rule and in their words: on the refused Mac its own service's state (ClusterLocalNetworkAccess.serviceState, as `start` reads it); on the leading Mac the other Mac's status, asked over the cable only while the pair has been starting past the ✗'s 20 s settle time. reason and next come from localNetworkBlockedLines and localNetworkRefusalLines, ending with `<cli> start` or Retry in `<cli> cluster` (ClusterLocalNetworkAccess.statusWords). A script start on the leading Mac ends its wait on it, as the ✗ does. - R-5: a stopped pair reads stopped (exit 4) whatever the other Mac's presence, with "<the other Mac> isn't answering over the cable." after the stopped line; other_mac.answers is false. ClusterOnboardingLive.swift is unchanged: ClusterLocalNetworkAccess calls its internal refusal rule and words (otherMacRefused, refusalIsCurrent, localNetworkRefusalLines, answerSeconds). Docs: cli-reference (exit table, the refusal's words, the stopped precedence), two-mac-cluster, architecture/inference; changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ays its refusal once The pair-2 re-test of DevNet 6940be3: - R-3: the 2/4 Pair hint's firewall bullet and the line that asks to pair again after a reinstall name the app (ClusterOnboardingCommand.app): Darkbloom Dev in the DevNet app. The prose that means the service stays. Production's text is unchanged. - R-4: the Local Network ✗ already says what macOS did and what to do, so its line for the refused Mac now says only that its part can't reach the local network (errorLines' refusalSaid), instead of the follower's own instruction; every other ✗ keeps the part's reason (A-3). Each lastErrors line is cut at a word, never inside a parenthesis, and ends with "…" (ClusterConsoleText.boundedAtWord). Docs: two-mac-cluster.md (the leading Mac's Local Network ✗) and architecture/inference.md (the app's name; the ✗'s lines). Changelog: one bullet in cluster-candidate-findings.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…de the other
R-6: with another install on this Mac, the uninstall keeps the shared
cluster folder for it, which held this install's own incident log (A-13:
each non-production install keeps its own file there).
- `ClusterIncidentLog.files` names the files a log keeps, in order: the
log, its lock sidecar and the copy a corrupt log is moved aside to (the
log's own rename now uses the same name).
- When the shared folder stays for the other install, the inventory lists
this install's own incident files, from
`ClusterIncidentLog.defaultFile(homeDirectory:install:)`, as items to
delete before the install folder, so the summary names them ("This
install's incident log"). Production's log is the shared
`incidents.json`, which an older build of the other install still
writes: it stays with the folder. When the whole cluster folder goes,
nothing changes.
- `ProviderUninstallPaths.environment` records the install the paths are
for.
The CLI reference, `docs/architecture/inference.md` (where the incident log is
described) and the changelog fragment say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/architecture/inference.md
…ntegration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1 to G-R4) An agent set up pair-2 on DevNet 0.10.6-dev.branch.77 by following the guide, end to end. Its four differences and the status gap (R-1), fixed with the strings of fix/cluster-status-truth (f92a578), which ships in the same dev round: - G-R1: after installing the other app on a paired Mac, choose Pair again when the screen offers it ("This Mac's Secure Enclave key changed after it paired (…)", Pair again / Quit), otherwise Start over on both Macs. - G-R2: `darkbloom status --solo` on a paired Mac with nothing beside the pair prints "Single-Mac serving: off (this Mac serves in its two-Mac cluster: `darkbloom cluster status`)": go on. - G-R3 with R-1: during a Local Network refusal, `cluster status` says not_serving (exit 3) with the screens' reason; the verify table now stops and asks the person to turn the setting on, on the Mac `next` names, instead of waiting 15 minutes on loading. The troubleshooting row shows the status signal (the leader's once its part has run 20 s). A stopped pair reads stopped even when the other Mac isn't answering (R-5). - G-R4: stop, restart and a scripted start say their waiting lines only if the wait lasts. fix/cluster-ln-wording (97005b1) changes no line the guide quotes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Step 1.4: after installing another app on a paired Mac, the agent acts on what each Mac's `darkbloom cluster` shows (Pair again on a Mac that offers only Pair again and Quit, else Start over), instead of one choice "on both Macs": one Mac can offer only Pair again while the other offers Start over, as the screen itself says after Pair again. - Step 4.3: while the pair's own part runs, `status --solo` shows `Daemon: running` with "This is the cluster's part on this Mac, not single-Mac serving (…)": go on, instead of asking to stop single-Mac serving that doesn't run. - Verify, the Local Network row: ask the human (the page's word for the person) to turn the setting on, on the Mac `next` names; the agent then starts the pair, so the two don't both run `darkbloom start`. - Verify, the `loading`/`unknown` row: after 15 minutes, STOP, and the human runs `darkbloom cluster` on the leader. Split from the old exit-3 row, it had no end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e ✗'s step as a parameter The refactor pass over the DevNet round 3 integration (R-1 with R-4). - `ClusterLocalNetworkAccess.otherMacRefused()` is the leading Mac's one entry, beside `serviceState()`. It asks the other Mac's status (`otherMacStatus`) only once this Mac's part has run the ✗'s settle time, then applies the ✗'s rule (`otherMacRefused(member:own:now:)`). That rule and the status request are internal again, and `refusalCanBeCurrent` is gone. ProviderCore's public API grows by `Refused`, `otherMacRefused()` and `statusWords` only, and the CLI no longer runs the rule in three steps. - `OnboardingLive.localNetworkRefusalLines(otherMac:app:then:)` takes the step after the instruction, as `localNetworkBlockedLines(app:then:)` does. `statusWords` passes the start command instead of replacing the screen's "Then choose Retry here." in the text, which a reworded ✗ would have left in `cluster status` without a sound. - A test pins the ✗'s own step; the rule's test reads `OnboardingLive.refusalIsCurrent` directly. Behaviour-preserving: the ✗'s lines, `cluster status`'s reason and next, and when the other Mac is asked are as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Local Network refusal R-1 made a leading Mac's script `start` end its wait once `cluster status` reads the other Mac's refusal (`ClusterPairCommands.waitUntilServing`), as the ✗ ends the screen's wait; no test covered it. The new test gives the wait a "Starting" look, then the refusal, then a serving look: the start ends at the refusal with its ✗ line and next step, and exits 3. With R-1's condition in `waitUntilServing` taken out, it fails: the wait goes on to the serving look and exits 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The round's bullet in `cluster-candidate-findings.md` began "In the DevNet app, …", which also scoped the Local Network ✗'s change to the DevNet app, although every build's ✗ changed: its last line no longer repeats the instruction cut off mid-sentence, and a ✗ line too long for the screen is cut at a word, marked with "…". The bullet now says that first, then the two DevNet-only names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This branch's own PR body ( Summary
Test plan
Docs
Before And AfterBefore: behavior flowchart TD
A["macOS keeps the member's follower off the local network"] --> B["status and cluster status on both Macs"]
B --> C["loading, exit 3, reason null: Loading takes a few minutes, check again"]
D["the member's uninstall asks the pair to stop, then leaves"] --> E["the leader's control: the other Mac is gone"]
E --> F["leader cluster status: other_mac_away, exit 5, a countdown to serving alone"]
After: behavior flowchart TD
A["macOS keeps the member's follower off the local network"] --> B1["member: not_serving, exit 3, This Mac can't reach the other Mac; On this Mac: turn on the app, then cli start"]
A --> B2["leader, its part past 20 s: not_serving, exit 3, The other Mac can't reach this Mac; that Mac: turn on the app, then cli start here or Retry"]
D["the member's uninstall asks the pair to stop, then leaves"] --> F["leader: stopped, exit 4, and the other Mac isn't answering"]
Before: code flow flowchart LR
LF["liveFacts"] --> RS["read the status lines"]
RS --> ST["state of status: Starting is loading; an away mode is other_mac_away, stopped or not"]
After: code flow flowchart LR
LF["liveFacts"] --> RS["read the status lines"]
RS --> ST["state of status: a stopped pair stays stopped"]
LF --> LR["localNetworkRefusal"]
LR -->|member| SS["serviceState blocked"]
LR -->|leader, Starting past 20 s| OM["otherMacStatus, then otherMacRefused"]
SS --> W1["statusWords: localNetworkBlockedLines"]
OM --> W2["statusWords: localNetworkRefusalLines"]
W1 --> NS["not_serving with reason and next"]
W2 --> NS
|
|
This branch's own PR body ( SummaryTwo wording fixes the pair-2 re-test of DevNet
Linked issueNone: the pair-2 re-test of Test planProd identity unless noted; every check binary under
Components touched
Protocol / interface changes
Documentation impact
Changelog
One bullet in Notes for reviewers
Before And AfterBehaviourBefore flowchart TD
P["2/4 Pair, the other Mac not found (DevNet app)"] --> F["· macOS's firewall lets Darkbloom in on both Macs"]
X["the member's follower refused by Local Network"] --> L["leader ✗, fourth line: the follower's own instruction, cut at 300 characters inside (its part is still running"]
After flowchart TD
P["2/4 Pair, the other Mac not found (DevNet app)"] --> F["· macOS's firewall lets Darkbloom Dev in on both Macs"]
X["the member's follower refused by Local Network"] --> L["leader ✗, fourth line: The other Mac (…): its part is running and can't reach the local network."]
Code flowBefore flowchart LR
hint["otherMacNotFoundLines: a stored list, Darkbloom written in"]
wr["waitReady: the Local Network ✗"] --> le["lastErrors"] --> el["errorLines: each part's lastError as it is"] --> b["ClusterConsoleText.bounded(300): a hard cut"]
After flowchart LR
hint["otherMacNotFoundLines: computed, ClusterOnboardingCommand.app"]
wr["waitReady: the Local Network ✗"] --> le["lastErrors(refusalSaid: true)"] --> el["errorLines: a refused part said plainly"] --> b["ClusterConsoleText.boundedAtWord(300): at a word, outside parentheses, …"]
Refactor PassPending: the dedicated refactor review ( |
|
This branch's own PR body ( SummaryWith both the production Darkbloom and Darkbloom Dev on a Mac, Linked issueCloses # (pair-2 re-test R-6; follow-up to #1783) Test plan
Components touched
Protocol / interface changes
Documentation impact
Changelog
Notes for reviewers
Before And Afterflowchart LR
subgraph Before
b1["darkbloom-dev uninstall<br/>(production on this Mac)"] --> b2["~/.darkbloom/cluster* kept, whole"]
b2 --> b3["incidents.dev.json (+ .lock, corrupt copy) left behind"]
end
subgraph After
a1["darkbloom-dev uninstall<br/>(production on this Mac)"] --> a2["~/.darkbloom/cluster* kept"]
a2 --> a3["inventory: ownIncidentLog(paths)<br/>ClusterIncidentLog.defaultFile(…install:) · .files"]
a3 --> a4["Delete This install's incident log / lock / corrupt copy<br/>(named in dry run and summary); production's incidents.json stays"]
end
Refactor PassPending. The dedicated refactor review has not run; the coordinating parent owns this gate. |
|
This branch's own PR body ( SummaryAn agent set up a two-Mac pair on the DevNet build Linked issueNone filed: the 2026-11-04 DevNet re-test on pair-2 (guide differences G-R1 to G-R4; status gap R-1). Test plan
Components touched
Protocol / interface changes
Documentation impact
Changelog
Notes for reviewers
Before And Afterflowchart TB
subgraph Before["Before (dev at 6940be379c)"]
A1["after installing the other app"] --> B1["Start over on both Macs"]
V1["verify: cluster status --json"] -->|"Local Network refused: loading, exit 3, no reason"| W1["check again for up to 15 minutes"]
S1["status --solo on a paired Mac"] --> D1["look for a Daemon: line that never appears"]
end
subgraph After["After"]
A2["after installing the other app"] --> P2{"Pair again offered?"}
P2 -->|yes| Q2["Pair again on both Macs"]
P2 -->|no| R2["Start over on both Macs"]
V2["verify: cluster status --json"] -->|"not_serving, exit 3, a Local Network reason"| T2["STOP: the person turns it on, on the Mac next names; then start or Retry"]
V2 -->|"loading or unknown"| L2["check again for up to 15 minutes"]
S2["status --solo on a paired Mac"] --> G2["Single-Mac serving: off (…): go on"]
end
Refactor PassRefactor Pass: pending. |
Summary
DevNet round 3: what the pair-2 re-test of #1783's DevNet build (
0.10.6-dev.branch.77,dev6940be379c) found,in one PR. Four branches, signed merges; the independent validation added three commits (Notes for reviewers).
statustruth): during a Local Network refusal,darkbloom statusandcluster statussaidloading(exit 3) with no reason on both Macs, so an agent following the guide waited 15 minutes. They now say
not_serving(exit 3, the existing contract) with the setup screens' own reason and next step, by the ✗'s own rule: on the Mac
kept off, from its own service; on the leading Mac, once its part has run 20 s, from the other Mac's status. A script
starton the leading Mac ends its wait on it too.stopped(exit 4) whatever the other Mac's presence, with a line that the other Macisn't answering (it read
other_mac_awayafter the member's uninstall had stopped the pair).DevNet app). Production's text is unchanged.
inside a parenthesis; the refused part's line is plain, and any ✗ line too long is cut at a word and marked "…".
in the dry run and summary; production's shared
incidents.jsonstays while another install may use it.Mac, the real
status --sololines, conditional waiting lines) and its verify step stops and asks the person on aLocal Network refusal instead of waiting.
Measured, not changed (known limitation A-7/P2-15): in a 20-minute soak with ~56K-token prompts among short ones
(up to 32 at once), 102 of 178 requests timed out waiting for their first token behind a long prefill. No crash or
wedge. It's in the 0.10.8 notes as a known limitation; the fix is the top follow-up after 0.10.8.
Linked issue
None filed: the pair-2 re-test of
dev6940be379c(R-1 to R-6, G-R1 to G-R4).Test plan
On the final head
71fd5b8149, re-run by an independent validator (overnight/round3/validation.md), prod identityunless noted. Every check binary ran under
sandbox-execwith a profile that denies~/.darkbloom*; everyswift testwas filtered and
--skip-build.ClusterStatusTruthTests(16 issues), R-3 onboarding check (3 failures),R-4 (2 + 3 issues), R-6 (4 issues); the validator's added test for a script
startending on the refusal is red withR-1's condition removed (exit 0 instead of 3).
22, the CLI-side ProviderCore set 52; the 8-suite onboarding filter 80; fix(cluster): on a paired Mac, darkbloom start/stop/restart/status control the pair; plain cluster status --json (stacked on #1764) #1774's 8 suites 67; the
uninstall set 97; fix(cluster): on a paired Mac, darkbloom start/stop/restart/status control the pair; plain cluster status --json (stacked on #1764) #1774's stop-path set 66.
ClusterOnboardingChecks1210/0; control 229/0, placement flow-run 33 and setup 264, provisioning161/0; diagnostics and GLM image admission pass;
ObservabilityChecks213/0 (in the sandbox through anxcrunshim that addsswiftc -disable-sandbox).tests 5, the uninstall dev set 34.
test-provider-identity.py. Theother two are local-only:
test-provider-test-watchdog.pyneedsps, which the sandbox blocks (it passes outside),and
.github/scripts/test-threat-diagnostics.pyfails the same way atdevunder Python 3.14.71fd5b8149(after the guide merge):make docs-check207 OK,make docs-impact-check BASE=6940be379c21 files OK,
make changelog-check55 valid,git diff --checkclean,test-provider-identity.pyandtest-changelog.pyOK; all 15 commits signed.cluster statuson both Macs during a Local Network refusal; the stoppedpair's status after the member's uninstall; the Pair hint's firewall line; the leader's ✗; the uninstall's incident
files.
Components touched
status/cluster status(ClusterPairSummary), the Local Network status words(
ClusterLocalNetworkAccess), the setup screens' wording (ClusterOnboardingFlow,ClusterOnboardingLive,ClusterConsoleText), the uninstall inventory (ProviderUninstallPlan);libs/darkbloom-cluster'sClusterIncidentLog.files.Protocol / interface changes
cluster status --jsonkeeps schema 1 and its exit codes;not_servingnow also covers a Local Network refusal, andstoppedtakes precedence overother_mac_awayfor a stopped pair. New public Swift API:ClusterIncidentLog.files,ProviderUninstallPaths.environment, and inClusterLocalNetworkAccess:Refused,otherMacRefused()andstatusWords.Documentation impact
docs/provider/cli-reference.md(cluster status's refusal and stoppedprecedence; the uninstall's own incident files),
docs/provider/two-mac-cluster.md(the ✗'s refused-part line; theLocal Network list),
docs/provider/agent-setup.md(G-R1 to G-R4, the verify step),docs/architecture/inference.md.Changelog
changelog.d/<topic>.mdfragment and ranmake changelog-check.Lines in
cluster-everyday-commands-on-a-pair.md(R-1, R-5),cluster-candidate-findings.md(R-3, R-4),provider-uninstall-keep-or-remove.md(R-6) andprovider-agent-setup-guide.md(the guide).Notes for reviewers
fix/cluster-status-truth(R-1, R-5)f92a5789502f19f53744fix/cluster-ln-wording(R-3, R-4)97005b1167ee37a2cb45docs/architecture/inference.md: both paragraphs keptfix/uninstall-own-incidents(R-6)3153c5dc3413e950add5docs/agent-setup-retest(guide)9a839b829d71fd5b8149On top of the three merges, from the independent validation (all signed):
80c1905c04refactor: ProviderCore's new public API for R-1 is onlyClusterLocalNetworkAccess.Refused,otherMacRefused()andstatusWords; the rule's steps are internal again, andlocalNetworkRefusalLinestakes itsfinal step as a parameter instead of
cluster statusreplacing the ✗'s "Then choose Retry here." in the text. The fourrefusal strings are byte-identical before and after, in prod and dev.
b4c6a76854test: a leading Mac's scriptstartends its wait on the refusal (exit 3).16249cedb9changelog: the ✗'s change isn't DevNet-only.Then the guide's merge
71fd5b8149.statusand the ✗ read the same refusal (ClusterLocalNetworkAccess.Refused,Live's
otherMacRefusedandrefusalIsCurrent) and the same text (localNetworkBlockedLines,localNetworkRefusalLines);cluster statusends with the start command instead of the ✗'s "choose Retry here".incidents.jsonstays when production is uninstalled beside the DevNetapp, because an older build of the other install still reads and rewrites the shared file.
ClusterConsoleChecks' file list; thecatalog's Qwen
max_output_length(65,536) against the pair's 32,768 cap (an owner decision).Before And After
Behaviour
Before
After
Code flow
Before
After
Refactor Pass
Each branch was reviewed; the full sections are in this PR's comments.
The three code branches and their integration: a dedicated refactor pass and independent validation
(
overnight/round3/validation.md) found no blockers and made three signed commits on13e950add5:80c1905c04refactor(cluster), behaviour-preserving: R-1's public API narrowed toClusterLocalNetworkAccess.Refused,otherMacRefused()(one call besideserviceState(), asking the other Mac only past the settle time) andstatusWords;OnboardingLive.localNetworkRefusalLines(otherMac:app:then:)takes its step aslocalNetworkBlockedLines(app:then:)does; a test pins the ✗'s own step. The four refusal strings are byte-identicalbefore and after, in prod and dev.
b4c6a76854test(provider): a leading Mac's scriptstartends its wait on the refusal, with the ✗ line andNext:,exit 3 (red with R-1's condition removed).
16249cedb9docs(changelog): R-4's bullet no longer reads as DevNet-only.Reviewed and kept: R-1 and the ✗ share one rule and one wording source; R-1's extra status request is serialized by the
exchange lock; R-5's precedence, R-3's computed hint, R-4's
refusalSaidandboundedAtWord, and R-6'sClusterIncidentLog.filesandownIncidentLogas written. Production output changes only in the intended lines.Follow-ups, not blocking: the leading Mac's extra request (bounded per phase at 8 s) says nothing while it waits; R-5's
awayalso setsother_mac.answersto false outside the stopped case; the leading Mac's owndarkbloom clusterscreen still shows the away countdown for a stopped pair (
OnboardingLive.localStatus);boundedAtWorddoesn't keep amaximumof 1 or less (no caller).The guide: a dedicated refactor pass (
9a839b829d) made four small edits (act on what each Mac offers after an appswitch; go on when
status --soloshows the cluster's part; ask the human on the Macnextnames; a STOP after the15-minute wait) and checked 36 quoted strings byte for byte against the code.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.